<form style="padding:5px; width:100%;" id="frm-search" method="post" class="cari" action="<?php echo $own_links;?>search">
	<input type="hidden" name="column" value="all" />
	<img src="<?php echo themeUrl();?>images/cari.png" align="left" />
	<input type="text" name="keyword" value="<?php echo isset($key)?$key:'';?>" size="20" />
    <select name="column">
		<?php cat_search($cat_search);?>
    </select>
	<input type="text" id="dstart" name="dstart" value="<?php echo $this->jCfg['isearch']['start_date'];?>" size="8" class="picker"/> s/d 
	<input type="text" name="dend" id="dend" value="<?php echo $this->jCfg['isearch']['end_date'];?>" size="8" class="picker" />
	<input type="submit" name="cari" class="btn-cari" value="Cari" />
    <input type="submit" name="report" class="btn-cari" value="Report" />
	<input type="button" onclick="document.location=SELF_URL" name="reset" class="btn-reset" value="Reset" />
    <?php 
		$pp = $this->jCfg['isearch']['per_page'];
		$st = isset($this->jCfg['isearch']['status'])?$this->jCfg['isearch']['status']:"all";
	?>
	<!--<select style="padding:5px; height:30px; float:right; margin-right:10px; cursor:pointer;" name="per_page" class="item_submit">
		<option value="5" <?php echo ($pp=='5')?'selected="selected"':'';?> >5</option>
		<option value="10" <?php echo ($pp=='10')?'selected="selected"':'';?> >10</option>
		<option value="50" <?php echo ($pp=='50')?'selected="selected"':'';?>>50</option>
		<option value="100" <?php echo ($pp=='100')?'selected="selected"':'';?>>100</option>
		<option value="200" <?php echo ($pp=='200')?'selected="selected"':'';?>>200</option>
	</select>
	-->
	<input  type="hidden" name="per_page" value="50" />
	<input  type="hidden" name="status" value="all" />
    <!--<select style="padding:5px; height:30px; float:right; margin-right:10px; cursor:pointer;" class="item_submit" name="status">
		<option value="all" <?php echo ($st=='all')?'selected="selected"':'';?>>-STATUS-</option>
        <option value="APPROVE" <?php echo ($st=='APPROVE')?'selected="selected"':'';?>>APPROVE</option>
        <option value="DONE" <?php echo ($st=='DONE')?'selected="selected"':'';?>>DONE</option>
	</select>-->
</form>
<div class="clr"></div>
<?php echo $paging;?>
<div class="clr"></div>
<table class="data">
	<tr>
		<th width="10px">No</th>
        <th>Tanggal Entry</th>
		<th>Nama Principal</th>
        <th>Nama Obligee</th>
        <th>Tipe Bank Garansi</th>
        <th>Status</th>
        <th>Note</th>
		<th><b style="color:#FC0;"><?php echo $cRec;?> Data </b></th>
	</tr>
	<?php 
	if(count($data) > 0){
		foreach($data as $r){?>
			<tr>
				<td><?php echo ++$no;?></td>
                <td><?php echo myDate($r->tgl_entry);?></td>
				<td><?php echo $r->form_principal_name;?></td>
                <td><?php echo $r->form_obligee_name;?></td>
                <td><?php echo ucwords($r->form_bank_garansi_type);?></td>
                <td><?php echo $r->form_status;?></td>
                <td align="center">
                <?php
					// cek note ...
					$nnt=get_note(array(
							"form_id"		=> $r->form_id,
							"asuransi_id"	=> $this->jCfg['user']['asuransi']
					));
					if(count($nnt)>0){	
						echo "<a href='".$own_links."get_note/".$r->form_id."' class='simple south' title='Read ?'>";
						echo ($nnt[0]->note_read=="0")?"<img src='".themeUrl()."images/unread.png'>":"<img src='".themeUrl()."images/read.png'>";
						echo "</a>";
					}					
				?>
                </td>
				<td align="right">
                 <!-- <a href="<?php //echo $own_links."report/".$r->form_id;?>" target="_blank" title="Cetak Formulir">
                      Cetak
                  </a>-->
				</td>
			</tr>
	<?php } 
	}
	?>
</table>
<?php echo $paging;?>
<script language="javascript">
$('.item_submit').change(function(){
	$('#frm-search').submit();
});
</script>